﻿using Fuse8.ContentManagementFramework.Domain.Commands.CommandParameters;
using Fuse8.DomainFramework.Domain;

namespace Fuse8.ContentManagementFramework.Domain.Commands
{
    public class CmsPageSelectAllByTemplateIdCommand : BaseEntityParameterCommand<CmsPage, CmsPageSelectAllByTemplateIdCommandParameter>
    {
        #region Overrides

        public override string CacheKey
        {
            get
            {
                return string.Format("TemplateId_{0}", CommandParameter.TemplateId);
            }
        }

        public override string CommandName
        {
            get
            {
                return "CmsPageSelectAllByTemplateIdCommand";
            }
        }

        #endregion
    }
}